package bdqn.Test;

import bdqn.Service.UserService;
import bdqn.pojo.HelloSpring;
import bdqn.pojo.User;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.EnableLoadTimeWeaving;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestSpring {
@Test
      public void show(){
    ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
    UserService userService=(UserService) applicationContext.getBean("userService");
     System.out.println(userService.login(new User("ry","re")));

      }
}
